package org.lei2j.org3;

/**
 * Created by lei2j on 2018/5/12.
 */
public class A1Duck extends Duck{


    @Override
    public void display() {
        System.out.println("red..");
    }

    public static void main(String[] args) {
        Duck duck = new A1Duck();
        duck.setFlyable(new FlyBevWing());
        duck.setQuackable(new QuackWin());
        duck.permFly();
        duck.permQuack();
    }
}
